package com.thoughtworks.tax.printerforamt;

import com.thoughtworks.tax.Receipt;

/**
 * print the receipt
 * @author Tang Ling
 *
 */
public class ReceiptPrinter
{

	protected Receipt			receipt;
	protected ReceiptPrinter	printer;

	public ReceiptPrinter(Receipt rec)
	{
		receipt = rec;
	}

	public ReceiptPrinter(ReceiptPrinter printer)
	{
		this.printer = printer;
		this.receipt = printer.receipt;
	}

	public void print()
	{
		receipt.print();
	}
}
